package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/5.检验旧密码是否正确
 */
@HttpInlet(Net.GET_CHECK_OLD_PWD)
public class GetCheckOldPayPwd extends ZJDBAsyGet<Object> {
    public String userid;
    public String oldpaypwd;

    public GetCheckOldPayPwd(String userid, String oldpaypwd, AsyCallBack listener) {
        super(listener);
        this.userid = userid;
        this.oldpaypwd = oldpaypwd;
    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 1) {

            return "1";
        } else {
            TOAST = "旧密码错误";
        }
        return null;
    }
}
